package com.mode.decorator.pattern;

/**
 * @Description:
 * @Author: zyf
 * @Time: 2020/9/27 16:53
 */
public class DecoratorMain {
    public static void main(String[] args) {
        SimpleCoffee simpleCoffee = new SimpleCoffee();
        Coffee withMilk = new WithMilk(simpleCoffee);
        System.out.printf("---"+withMilk.getIngredients());

    }
}
